﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmPresentacion.aspx.cs" Inherits="PharmacyWeb.Almacen.frmPresentacion" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server"><asp:Panel ID="Panel2" runat="server"><b>.: Liz Vigo:.</b></asp:Panel>
    <asp:TextBox runat="server" ID="txtAutor" Text="Creador"></asp:TextBox>
    <ajaxToolkit:BalloonPopupExtender runat="server" BalloonPopupControlID="Panel2" BalloonStyle="Cloud"  ExtenderControlID="" CustomCssUrl="" DynamicServicePath="" Enabled="True" TargetControlID="txtAutor" ID="txtAutor_BalloonPopupExtender"></ajaxToolkit:BalloonPopupExtender>
    <div class="row clear-fix">
        <asp:FormView ID="fvPresentacion" DefaultMode="Edit" runat="server"
            ItemType="PharmacyBussinesEntities.Presentacion" Width="100%"
            SelectMethod="GetPresentacion"
            UpdateMethod="UpdatePresentacion"
            InsertMethod="InsertPresentacion">
            
            <EditItemTemplate>
                <fieldset>
                    <legend>Editar Presentacion</legend>
                    
                     <div class="form-horizontal" role="form">
                    <div class="form-group">
                        <label class="col-sm-1 control-label">ID</label>
                        <div class="col-sm-5">
                            <asp:TextBox ID="txtId" 
                                Text="<%# BindItem.Id %>" 
                                CssClass="form-control input-sm" 
                                ReadOnly="True"
                                runat="server"/>
                        </div>
                    </div>
                         <div class="form-group">
                        <label class="col-sm-1 control-label">Descripcion</label>
                        <div class="col-sm-5">
                            <asp:TextBox ID="txtDescripcion" Text="<%# BindItem.Descripcion %>" 
                                CssClass="form-control input-sm" runat="server"/>
                        </div>
                    </div>
                         
                         <div class="form-group">
                        <div class="col-sm-offset-1 col-sm-5">
                          <asp:Button ID="btnGuardar" 
                              Text="Guardar"
                              CommandName="update"
                              CssClass="btn btn-success btn-sm" 
                              runat="server"/>
                            <a href="frmListPresentacion" class="btn btn-danger btn-sm">Cancelar</a>
                        </div>
                    </div>
                         
                             
                         </div>
                    <asp:ValidationSummary ID="ValidationSumary1" runat="server"
                        ShowModelStateErrors="True"/>
                </fieldset>
            </EditItemTemplate>
            
            <InsertItemTemplate>
                <fieldset>
                    <legend>Registrar nueva presentación</legend>
                    
                    <div class="form-horizontal" role="form">
                         <div class="form-group">
                        <label class="col-sm-1 control-label">ID</label>
                        <div class="col-sm-5">
                            <asp:TextBox ID="txtId" 
                                Text="0" 
                                ReadOnly="true"
                                CssClass="form-control input-sm" 
                                runat="server"/>
                        </div>
                             </div>
                     <div class="form-group">
                        <label class="col-sm-1 control-label">Descripcion</label>
                        <div class="col-sm-5">
                            <asp:TextBox ID="txtDescripcion" Text="<%# BindItem.Descripcion %>" 
                                CssClass="form-control input-sm" runat="server"/>
                        </div>
                    </div>
                             <div class="form-group">
                        <div class="col-sm-offset-1 col-sm-5">
                          <asp:Button ID="btnGuardar" 
                              Text="Guardar"
                              CommandName="insert"
                              CssClass="btn btn-success btn-sm" 
                              runat="server"/>
                            <a href="frmListPresentacion" class="btn btn-danger btn-sm">Cancelar</a>
                        </div>
                    </div>
                    </div>
                        <asp:ValidationSummary ID="ValidationSumary1" runat="server"
                            ShowModelStateErrors="True"/>
                    
                </fieldset>
            </InsertItemTemplate>
        </asp:FormView>
    </div>
</asp:Content>
